STLIBNAME=libriskfunc.a
CC=gcc
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o)
CFLAGS=-g -std=c99 -D_XOPEN_SOURCE
INC=-I../include
all:depend $(STLIBNAME)
depend:
	@$(CC) -MM $(SRC) $(CFLAGS) $(INC) > .depend
-include .depend
.c.o:
	@$(CC) $(CFLAGS) $(INC) -c $<
$(STLIBNAME):$(OBJ)
	ar rcs  $(STLIBNAME)	$(OBJ)
clean:
	@rm $(STLIBNAME) $(OBJ) .depend -f
	
